package com.project.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@ComponentScan("com.project")
@EnableGlobalMethodSecurity(prePostEnabled=true) //开启SpringSecurity
public class ServiceAuthApplication {
    public static void main(String[] args){
        SpringApplication.run(ServiceAuthApplication.class,args);
    }
}

